<template>
  <!--  数据可视化页面-->
  <div class="board" :class="isControl?'board_project':''">
    <!-- 地图 -->
    <module-map ref="map"></module-map>
    <!-- 标题 -->
    <div :class="isControl?'board_project_header':'board_header'">
      <el-button type="text" >三维数据可视化</el-button>
    </div>
    <router-view class="board_router" ref="currentPage"  @changeType="changeTypes" ></router-view>

  </div>
</template>

<script>
  import ModuleMap from './3D-model/modules/map.vue'
  import {
    borderBox8,
    borderBox13,
    scrollBoard,
    decoration10,
    scrollRankingBoard,
    decoration1,
    decoration3,
    decoration12,
    decoration2,
    decoration7,
    loading
  } from '@jiaminghi/data-view'
  import Vue from 'vue'
  import {actions, store} from "./work-point.store";

  Vue.use(loading)
  Vue.use(borderBox13)
  Vue.use(borderBox8)
  Vue.use(scrollBoard)
  Vue.use(decoration10)
  Vue.use(scrollRankingBoard)
  Vue.use(decoration1)
  Vue.use(decoration3)
  Vue.use(decoration2)
  Vue.use(decoration12)
  Vue.use(decoration7)
  export default {
    components: {ModuleMap},
    data() {
      return {
      }
    },
    computed: {
      projectName() {
        return store.projectInfo
      },
      isControl() {
        if (this.$route.params.projectId) {
          return true
        }
        return false
      }
    },
    methods: {
      //控制地图数据
      changeTypes(value){
        this.$refs.map.refresh(value)
      },
    },
    mounted() {
    },
  }
</script>

<style lang="less" scoped>
  //项目控制台
  .board_project {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;

  }
  .board {
    position: relative;
    width: 100vw;
    height: 100vh;

    .board_header {
      width: 100%;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      height: 6.375rem /* 102/16 */;
      /*background-image: url('./imgs/header.png');*/
      background-size: 100% 100%;
      text-align: center;
      padding-top: 1.4375rem /* 23/16 */;

      & > em, .el-button {
        font-weight: 600;
        font-size: 2.75rem /* 44/16 */;
        line-height: 3.875rem /* 62/16 */;
        background-image: -webkit-linear-gradient(top, #82a8f2, #1b1b1b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }

    .board_project_header {
      width: 100%;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      height: 3.375rem /* 102/16 */;
      background-image: url('./3D-model/imgs/header.png');
      background-size: 100% 100%;
      text-align: center;

      & > em, .el-button {
        font-weight: 600;
        font-size: 1.75rem;
        line-height: 2.475rem;
        background-image: -webkit-linear-gradient(top, #82a8f2, #1b1b1b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }
  }
</style>


<style lang="less">

  .tabs{
    position: absolute;
    bottom:50px ;
    box-sizing: border-box;
    padding: 0 10px;
    /*background: red;*/
    width: 100%;
    height: 80px;
  }
</style>
